function [ out ] = MatStockRun(maxTime)
  % MatStockRun: Short description
  %
  % Extended description

  % test %
  % 'sh000001',{'20150101','20160101'}
  id = 'sh000001';
  ymd = {'20150101','20160101'};
  % test %

  tradeTime = 10;
  delay = 3;
  trgt = 0.03;

  infoList = MatStock(id,ymd);
  [ tradeInfoList,trgtList ] = findTargetTrade(infoList,tradeTime,delay,trgt);

  param = struct();
  param.inputDim=5;
  param.hiddenDim=15;
  param.outputDim=1;
  param.inputInfo={'open','high','close','low','volume'};
  param.outputInfo={''};

  inputList = [infoList.open;infoList.high;infoList.close;infoList.low;infoList.volume];
  outputList = trgtList;
  inputList = inputList(:,1:size(trgtList,2));

  data = struct();
  data.param = param;


  for i=1:maxTime

    inputListTmp = mapminmax(inputList,0,1);
    outputListTmp = outputList;
    data.inputList = inputListTmp';
    data.outputList = outputListTmp';
    data = simpleRNN('run',data);

  end

  out = data;
end  % MatStockRun
